Hybris UX Api icon

Hybris UX Api

(0 reviews)

TMF646 PATCH - Dispatch Appointment

Automates the technician visit confirmation process by retrieving scheduled appointments, confirming customer availability through the Wonderful AI Agent, and updating the appointment status in CSG based on the customer's response.

URL
https://[localhost]:[port]/ecom-ux/v1/{businessId}/appointment/{id}
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
idstringAppointment id or Order IdY
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.Y
Request for Technical appointment:
curl --location --request PATCH 'https://nonprod.esb.cloud.lla.com/dev/ecom-ux/ecom-ux/v1/PR/appointment/1200096041981014' \
--header 'client_id: 12345' \
--header 'client_secret: abcde' \
--header 'X-Correlation-ID: 8417a2ba-19ae-4523-b63b-d99fcab9b5d5' \
--header 'Content-Type: application/json' \
--data-raw '{
    "category": "dispatchConfirm",
    "characteristics": [
        {
            "name": "jobType",
            "value": "TF"
        },
        {
            "name": "jobStatus",
            "value": "R"
        },
        {
            "name": "dispatchStatus",
            "value": "1"
        }
    ],
    "note": [
        {
            "@type": "DispatchComment",
            "text": "Customer confirmed the appointment"
        }
    ],
    "relatedEntity": [
        {
            "@referredType": "BillingAccount",
            "id": "8211990010043396",
            "role": "Customer Account"
        }
    ],
    "relatedParty": [
        {
            "@referredType": "Individual",
            "id": "7000",
            "role": "Technician"
        }
    ],
    "validFor": {
        "startDateTime": "2026-07-09T19:00:00.000-05:00"
    }
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
categorystringIdentifies the type of appointment update. Static value: dispatchConfirmM
characteristics[name=jobType].valuestringJob type code for dispatch. Value: TFM
characteristics[name=jobStatus].valuestringJob status code. Value: RM
characteristics[name=dispatchStatus].valuestringDispatch status indicator. Value: 1M
note[@type=DispatchComment].textstringDispatch comment text confirming the appointmentM
relatedEntity[].@referredTypestringStatic content: BillingAccountN
relatedEntity[].idstringCustomer billing account IDM
relatedEntity[].rolestringStatic content: Customer AccountN
relatedParty[].@referredTypestringStatic content: IndividualN
relatedParty[].idstringTechnician IDM
relatedParty[].rolestringStatic content: TechnicianN
validFor.startDateTimestringStart date time of the dispatch appointment (now()) and not mapping to CSGM
Response
{
    "status": "confirmed",
    "category": "dispatchConfirm",
    "characteristics": [
        {
            "name": "jobType",
            "value": "TF"
        },
        {
            "name": "jobStatus",
            "value": "R"
        },
        {
            "name": "dispatchStatus",
            "value": "1"
        }
    ],
    "note": [
        {
            "@type": "DispatchComment",
            "text": "Customer confirmed the appointment"
        }
    ],
    "relatedEntity": [
        {
            "@referredType": "BillingAccount",
            "id": "8211990010043396",
            "role": "Customer Account"
        }
    ],
    "relatedParty": [
        {
            "@referredType": "Individual",
            "id": "7000",
            "role": "Technician"
        }
    ],
    "validFor": {
        "startDateTime": "2026-07-09T19:00:00.000-05:00"
    }
}
Definitions

Each of the response parameters is detailed.

nametypedescriptionrequired
statusstringAppointment dispatch result. Value: confirmed on success, failed on errorM
categorystringEchoes the request category. Value: dispatchUpdateM
characteristics[name=jobType].valuestringEchoed job type code. Value: TFM
characteristics[name=jobStatus].valuestringEchoed job status code. Value: RM
characteristics[name=dispatchStatus].valuestringEchoed dispatch status. Value: 1M
note[@type=DispatchComment].textstringEchoed dispatch comment textM
relatedEntity[].@referredTypestringEchoed referred type. Value: BillingAccountN
relatedEntity[].idstringEchoed customer billing account IDM
relatedEntity[].rolestringEchoed role. Value: Customer AccountN
relatedParty[].@referredTypestringEchoed referred type. Value: IndividualN
relatedParty[].idstringEchoed technician IDM
relatedParty[].rolestringEchoed role. Value: TechnicianN
validFor.startDateTimestringEchoed start date time of the dispatch appointmentM

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method POST not allowed for : /{businessId}/appointment/{id}"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error."
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /appointment/{id} for Business Id: xxxx not implemented"
    }]
  }

Reviews